package homework4.com.zut.aspectj_without_xml;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:aspectj_without_xml.xml")
public class AspectjTest {

	@Autowired
	private UserService userService;
	@Test
	public void test() {
		userService.addUser();
		userService.updateUser();
		userService.deleteUserById();
		userService.findUserById();
	}

}